package com.china08.yxyapi.repository.db.yxy;

import java.util.List;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.china08.yxyapi.cache.annotations.YxCacheConfig;
import com.china08.yxyapi.entity.db.res.YxyArea;

@Cacheable
@YxCacheConfig

public interface YxyAreaRepository extends JpaRepository<YxyArea, Integer> {
    /**
     * 通过id查询记录
     * 
     * @param key
     * @return
     */
    YxyArea findByAreaId(String key);

	List<YxyArea> findByAreaPId(String districtCode);

	YxyArea findByAreaName(String cityName);
}
